package com.asp.aspchain.transaction.controller;

import com.asp.aspchain.core.base.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 交易接口
 * @author zhongzifeng
 * @date 2018/10/24
 */
@Controller
@RequestMapping("/tranction/eoa")
public class EoaTransactionController extends BaseController {


    /**
     * 交易查询接口(外部接口）
     * @param json
     * @return
     * @author zhongzifeng
     * @date 2018/10/24
     */
    @RequestMapping(value="/qrytrade",method= RequestMethod.POST)
    @ResponseBody
    public Object qrytrade(@RequestBody String json){
        return null;
    }

    /**
     * 转账消费（转移资产）接口(外部接口）
     * @param json
     * @return
     * @author zhongzifeng
     * @date 2018/10/24
     */
    @RequestMapping(value="/transfer",method= RequestMethod.POST)
    @ResponseBody
    public Object transfer(@RequestBody String json){
        return null;
    }

    /**
     * 功能描述: 充值（上链）接口
     * @param: json
     * @return: Object
     * @auther: raoyuxing
     * @date: 2018/10/24 15:44
     */
    @RequestMapping(value = "/commit",method = RequestMethod.POST)
    public Object commit(@RequestBody String json){
        return null;
    }

    /**
     * 功能描述: 充正（移除）接口
     * @param: json
     * @return: Object
     * @auther: raoyuxing
     * @date: 2018/10/24 17:11
     */
    @RequestMapping(value = "/withdraw",method = RequestMethod.POST)
    public Object withdraw(@RequestBody String json){
        return null;
    }

    /**
     * 功能描述: 交易通知接口
     * @param: json
     * @return: Object
     * @auther: raoyuxing
     * @date: 2018/10/24 17:11
     */
    @RequestMapping(value = "/tradenotify",method = RequestMethod.POST)
    public Object tradenotify(@RequestBody String json){
        return null;
    }
}
